package cn.ac.jaas.isc.vegetable.quartz.config;

import org.springframework.boot.autoconfigure.quartz.SchedulerFactoryBeanCustomizer;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;

/**
 * @author 张高昌
 * @date 2022/4/30 16:15
 * @description: 功能描述
 */
@Configuration
public class VegetableQuartzCustomizerConfig implements SchedulerFactoryBeanCustomizer {

    @Override
    public void customize(SchedulerFactoryBean schedulerFactoryBean) {
        schedulerFactoryBean.setWaitForJobsToCompleteOnShutdown(true);
    }
}
